const Mock = require('mockjs')

// 模拟一个接口
Mock.mock('/api/itemLists', {
  code: 200,
  msg: 'success',
  data: {
    'total|50-100': 50, // 随机值
    'lists|10-20': [
      {
        'id|+1': 1,
        title: '@ctitle',
        'price|0-100': 0,
        desc: '@cparagraph',
        thumb: "@image('100x100','@color', '@cname')"
      }
    ]
  }
})
